<? if($this->pageArray['pageNumber']>0):?>
			<form name="userIndexForm" id="userIndexForm" action="administrator<?=CHOSING_DE?>user<?=CHOSING_DE?>dodel" method="post">
				<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
					<tr>
						<td width="20%" class="bbgg">
							<strong>用户名</strong>
						</td>
						<td width="10%" class="bbgg">
							<strong>注册时间</strong>
						</td>
						<td width="20%" class="bbgg"><strong>会员积分</strong></td>
						<td width="10%" class="bbgg">
							<strong>详 细</strong>
						</td>												<td width="20%" class="bbgg">							<strong>增加积分</strong>						</td>												<td width="20%" class="bbgg">							<strong>修改密码</strong>						</td>
						<td width="20%" class="bbgg">
							<strong>操 作</strong>
						</td>
					</tr>		
					<? for($i=0;$i<count($this->userArray);$i++):?>						
					<tr bgcolor="#FFFFFF">
						<td align="center" valign="middle">
							<?=$this->userArray[$i]['username']?>
						</td>
						<td align="center">
							<?=date('Y-m-d H:i:s',$this->userArray[$i]['reg_time'])?>
						</td>
						<td align="center"><?=$this->userArray[$i]['integral']?></td>
						<td align="center">
							<a href="administrator-user-more?uid=<?=$this->userArray[$i]['uid']?>&type=<?=$this->userArray[$i]['member_type']?>&action=intro">查 看</a>
						</td>												<td align="center">							<a href="administrator-user-addscore?uid=<?=$this->userArray[$i]['uid']?>&type=<?=$this->userArray[$i]['member_type']?>&action=intro">添加</a>						</td>												<td align="center">							<a href="administrator-user-mod?uid=<?=$this->userArray[$i]['uid']?>&type=<?=$this->userArray[$i]['member_type']?>&action=intro">修改密码</a>						</td>
						<td align="center">
							<input type="checkbox" name="itemArray[]" value="<?=$this->userArray[$i]['uid']?>" />
						</td>
					</tr>
					<? endfor;?>													
				</table>
			  <br />
				<div style="margin:10px">全选<input type="checkbox" onClick="selectAll(this,'userIndexForm','itemArray[]');" /></div>
				<div style="margin:10px">共 <?=$this->pageArray['pageNumber']?> 页/当前<?php echo $this->pageArray['page'];?>　<?=$this->pageString?></div>
				<div class="adminSearchDiv">
					<div>用户名 ： <input name="username" value="<?=$this->username?>" /></div>
					<div><input type="button" onclick="userSearch();" value="搜索" /></div>
				</div>
			</form>
<?else:?>
<?=$this->getMsg('暂无会员信息! <a href="javascript:history.back(-1);">返回</a>');?>
<?endif;?>
<script>
function givePermission(){
	if(checkShouldDelItems('userIndexForm','itemArray[]',1)){
		$('#userIndexForm').attr('action','administrator<?=CHOSING_DE?>user<?=CHOSING_DE?>permit?set=1');
		return true;
	}else{
		return false;
	}
}
function noPermission(){
	if(checkShouldDelItems('userIndexForm','itemArray[]',1)){
		$('#userIndexForm').attr('action','administrator<?=CHOSING_DE?>user<?=CHOSING_DE?>permit?set=-1');
		return true;
	}else{
		return false;
	}
}
function userSearch(){
	var url=window.location.href;
	url=url.replace(/username=[^&]*/,'');
	url=url.replace(/state=[^&]*/,'');
	if(url.indexOf("?")!=-1){
		url=url+"&username="+$('input[name="username"]').val()+"&state="+$('select[name="state"]').val();
	}else{
		url=url+"?username="+$('input[name="username"]').val()+"&state="+$('select[name="state"]').val();
	}
	//alert(url);
	window.location.href=url;
}
$('select[name="state"]').val(<?=$this->state?>);
</script>